<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:composite="http://java.sun.com/jsf/composite"
    xmlns:p="http://primefaces.prime.com.tr/ui">
    
    
  <h:head>  
    <title>IGNORED</title>
  </h:head>
  
  <h:body> 
  	<composite:interface>
  	</composite:interface>

  	       
    <composite:implementation>
		<h:panelGroup rendered="#{userManager.userLoggedIn}">
			<h:form id="hello"> 
				<fieldset> 
					<h:outputText styleClass="hello-text" value="Welcome, #{sessionScope['user'].firstname}"/>
					<h:outputText styleClass="hello-text" value="|"/>
					<a href="userProfile.xhtml" class="hello-text">Profile</a>
					<h:outputText styleClass="hello-text" value="|"/>
					<h:commandLink styleClass="hello-text" action="#{userManager.logout}" value="Logout"/>
				</fieldset>
			</h:form>
		</h:panelGroup> 
    </composite:implementation>    
  </h:body>
</html>